<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="${pageContext.request.contextPath }/jquery-1.7.2.js"></script>
<script type="text/javascript">
	function register(){
		//alert("hi");
		location.href="${pageContext.request.contextPath }/member_view/hello_register.jsp";
	}
	function login(){
		var id=document.loginForm.id.value;
		var password=document.loginForm.password.value;
		var saveId=document.loginForm.saveId.value;
		
		location.href="${pageContext.request.contextPath }/member.do?command=loginForm&id="+id+"&password="+password+"&saveId="+saveId;
	}
</script>
</head>
<body>
<center>

	<table width="900" border="0" cellpadding="5px" align="center">
		<tr height="20">
			<td colspan="3"></td>
		</tr>
		<tr height="70"><!-- 1번째 줄 : DABANG 회원가입... 다방|도움말 -->
			<td align="left" colspan="2">
				<a href="${pageContext.request.contextPath }/cafe.do?command=cafe">
				<img src="${pageContext.request.contextPath }/img/register/dabang.png"></a>
					&nbsp;&nbsp;</td>
			
		</tr>
		<tr height="50">
			<td colspan="2"><img src="${pageContext.request.contextPath }/img/login/header_bar_login.png"></td>
		</tr>
		<tr height="50"></tr>
		<tr height="60">
			<td width="137" bgcolor="#F0FFF0" >
				
				<table border="0" >
				
				<tr>
				
					<td width="130">
					<form name="loginForm" method="post" action="${pageContext.request.contextPath }/member.do">
					<input type="hidden" name="command" value="login">
					<c:choose>
						<c:when test="${requestScope.id!=null }">
							<input type="text" name="id" size="18"  value="${requestScope.id }"><br>
						</c:when>
						<c:otherwise>
							<input type="text" name="id" size="18"  placeholder="아이디"><br>
						</c:otherwise>
					</c:choose>
					<input type="password" name="password" size="18" placeholder="비밀번호">
				</td>
				<td align="left">
				<input type="image" src="${pageContext.request.contextPath }/img/login/btn_big_login.gif" onclick="login()">
				
			</td>
			
				</tr>
				
				<tr>
			<td>
			<c:choose>
				<c:when test="${requestScope.id!=null }">
				<input type="checkbox" name="saveId" checked="checked">
				</c:when>
				<c:otherwise>
				<input type="checkbox" name="saveId">
				</c:otherwise>
			</c:choose>
				
				<font size="2" face="돋움">아이디저장 </font>
			</td>
			</form> 
			<td align="left">
				<input type="image" src="${pageContext.request.contextPath }/img/register.PNG" onclick="register()">
			</td>
			
		</tr>
				</table>
			
			</td>
				<td>
				<input type="image" src="${pageContext.request.contextPath }/img/login/star2.gif">
				</td>
			
		</tr>
		
	
			
	
	</table>
	
</center>
</body>
</html>